package com.hooper.redisdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hooper.redisdemo.domain.Blog;
import com.hooper.redisdemo.domain.User;

import java.util.List;

/**
 * @author Mind
 * @description 针对表【blog(用户博客表)】的数据库操作Service
 * @createDate 2023-02-24 17:42:26
 */
public interface BlogService extends IService<Blog> {

    /**
     * 点赞博客
     *
     * @param userId 点赞用户id
     * @param blogId 博客号
     * @return 点赞信息
     */
    String likeOrNot(Long userId, Long blogId);

    List<User> topLikeUser(Long blogId);
}
